<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>method属性示例</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
    <div id="app">
        <input type="button" value="单击事件" v-on:click="Alert()">
    </div>

    <script>
        new Vue({
            el:"#app",
            methods:{
                Alert:function(){
                    alert("Vue中的事件绑定");
                }
            }
        })
    </script>
</body>
</html>
